import request from '@/utils/request'

// 查询输液方式配置列表 (分页)
export function selectPageInfusionType(query) {
  return request({
    url: '/business/infusionType/selectPage',
    method: 'get',
    params: query
  })
}

// 查询输液方式配置列表 (不分页)
export function listInfusionType(query) {
  return request({
    url: '/business/infusionType/list',
    method: 'get',
    params: query
  })
}

// 查询输液方式配置详细
export function getInfusionType(infusionTypeId) {
  return request({
    url: '/business/infusionType/' + infusionTypeId,
    method: 'get'
  })
}

// 新增输液方式配置
export function addInfusionType(data) {
  return request({
    url: '/business/infusionType',
    method: 'post',
    data: data
  })
}

// 修改输液方式配置
export function updateInfusionType(data) {
  return request({
    url: '/business/infusionType',
    method: 'put',
    data: data
  })
}

// 删除输液方式配置
export function delInfusionType(infusionTypeId) {
  return request({
    url: '/business/infusionType/' + infusionTypeId,
    method: 'delete'
  })
}
